Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACU: permit scans on LAT even when Sun Avoidance is not to be enabled #586

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

mhasself
Copy link
Member

@mhasself mhasself commented Dec 4, 2023

Description

Adds basic Sun-safety "policy" for the LAT, even though avoidance won't be enabled for now. Without this the monitor_sun process just crashes.

Also makes sure that _check_scan_sunsafe short-circuits to True when avoidance is disabled (and to False if the map is not valid). This means that a sun-safety policy is not needed, if avoidance is disabled. The monitor_sun process will not be runnable, but that's ok.

Motivation and Context

LAT could not scan; this was a bug.

How Has This Been Tested?

Tested on LAT in a few different configs. This should not affect how SATPs run.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@BrianJKoopman BrianJKoopman merged commit 6815d59 into main Dec 8, 2023
2 checks passed
@BrianJKoopman BrianJKoopman deleted the mhasself/acu-disable-sun branch December 8, 2023 22:25
hnakata-JP pushed a commit that referenced this pull request Apr 12, 2024
…#586)

* ACU: full sun policy for LAT, though avoidance remains disabled

* ACU: better behavior if Sun avoidance isn't configured

* ACU: add proper return when monitor_sun exits on request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants